﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MengCC.Core.Data
{
    public interface IBaseEntity 
    {

    }
    public class BaseEntity: BaseEntity<int>
    {

    }
    public class BaseEntity<TType>: IBaseEntity
    {
        [Key]
        public TType Id { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime ModifiedTime { get; set; }
        /// <summary>
        /// 更新用户
        /// </summary>
        public int ModifiedUserId { get; set; }
    }
}
